<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%
	request.setCharacterEncoding("UTF-8");
%>

<%@ include file="../jsp/commons/common.jsp" %>

<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	
	<script type="text/javascript" src="<c:url value="/scripts/lib/jquery-1.6.1.min.js"/>"></script>
	<script type="text/javascript" src="<c:url value="/scripts/lib/jquery-ui-1.8.13.custom.min.js"/>"></script>
	<script type="text/javascript" src="<c:url value="/scripts/lib/prototype.js"/>"></script>
	<script type="text/javascript" src="<c:url value="/scripts/lib/scriptaculous.js"/>"></script>
	
	<script type="text/javascript" src="<c:url value="/scripts/lib/acanto/form.js"/>"></script>
	<script type="text/javascript" src="<c:url value="/scripts/lib/acanto/messages.js"/>"></script>
	<script type="text/javascript" src="<c:url value="/scripts/lib/acanto/commons.js"/>"></script>
	
	<script type="text/javascript">
	<!--
		Event.observe(window, 'keypress', cancelBks, false);
		Event.observe(window, 'keydown', cancelBks, false);
		
		function cancelBks(e) 
		{			
			if (e.keyCode == Event.KEY_BACKSPACE) 	
			{
				console(e);
				
				if (e.target) 
				{
					targ = e.target;
				}
				else if (e.srcElement) 
				{
					targ = e.srcElement;
				}
					
				src = targ.tagName.toUpperCase();			
				
				console(src);
				
				if (src != 'INPUT'  && src != 'TEXTAREA')
				{
					Event.stop(e);
				}
			}
		}
			
		function onPageLoad() {}
	//-->
	</script>

	<link rel="stylesheet" href="<c:url value="/styles/acanto.css"/>" type="text/css" />
	<link rel="stylesheet" href="<c:url value="/styles/cupertino/jquery-ui-1.8.13.custom.css"/>" type="text/css" />
	
	<link rel="icon" href="<c:url value="favicon.ico"/>" type="image/x-icon" />
	<link rel="shortcut icon" href="<c:url value="favicon.ico"/>" type="image/x-icon" />

	<title><tiles:getAsString name="title" /></title>
	
<head>
	<body onload="onPageLoad();">
		<!-- ajax loader -->
		<div id="loading" style="display: none; float: left; left: 300px; position:absolute; top: 5px;">
			<img src="<c:url value="/images/commons/ajax-loader.gif"/>" style="vertical-align: middle;" />&nbsp;&nbsp;loading ... 
		</div>
	
		<div id="main">
		
			<table class="main-table" cellpadding="0" cellspacing="0" >
				<tr>
				    <td class="logo" colspan="2">    	
				    	<div style="position:absolute; top: 10px; right: 5px;">
					    	<ul>
								<li onclick="document.location = '<c:out value="${appContext}"/>/logout.htm';">LOGOUT</li>						
							</ul>
						</div>
					</td>                
				</tr>
				<tr>
					<td class="tabs" colspan="2" >   
						<acanto:navtabs id="mainMenu" menuId="/" /> 	                  
					</td>
				</tr>
				<tr>
				    <td class="menu-bar" colspan="2" >     
				    	<acanto:menu id="mainMenu" menuId="/" depth="2" /> 
				    </td>
				</tr>
				<tr>
					<td id="menuTd" style="height: 470px; padding-top: 10px; vertical-align: top; text-align: left; border-right: 1px solid #cccccc;">     			
						<div id="ltMenuDiv" style="width:180px; margin-left: 10px;">
							<div class="left-menu">				
								<acanto:menu id="mainMenu" menuId="/" depth="3" />
							</div>							
						</div>	
					</td>  
					<td style="width:100%; margin: 0px; padding: 10px; vertical-align: top; text-align: left;">	
						<tiles:insertAttribute name="content" />			
				   	</td>
				</tr>
				<tr>
				    <td class="copyright">     
				    	<nobr>Acanto - ver. 0.1 - Copyright &copy; 2011 Fabio Mauro </nobr>
				    </td>
				    <td colspan="2" style="text-align: right;" class="copyright">     
				    	<nobr>Site language </nobr>
						<<a href="<c:url value="./navigation.htm?siteLanguage=it&amp;__menu_id=/home.htm"/>">it</a>-<a href="<c:url value="./navigation.htm?siteLanguage=en&amp;__menu_id=/home.htm"/>">en</a>>
				    </td>
				</tr>
			</table>
		</div>
	</body>
</html>